package server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class QQServer {
    public QQServer(){
        try{
            System.out.println("服务器启动中！");
            ServerSocket serverSocket = new ServerSocket(9999);
            while (true){
                Socket socket = serverSocket.accept();
                ClientConnServerThread clientConnServerThread = new ClientConnServerThread(socket);
                clientConnServerThread.start();
                System.out.println("——————————");
            }
        } catch (IOException e) {
//            System.out.println("服务器启动失败！");
            e.printStackTrace();
        }
    }
}
